package com.wyq.service.impl;

import java.util.List;
import java.util.Map;

import com.wyq.bean.AdminUser;
import com.wyq.dao.AdminUserDAO;
import com.wyq.service.AdminUserService;

public class AdminUserServiceImpl implements AdminUserService {
	private AdminUserDAO adminUserDAO;

	public AdminUserDAO getAdminUserDAO() {
		return adminUserDAO;
	}

	public void setAdminUserDAO(AdminUserDAO adminUserDAO) {
		this.adminUserDAO = adminUserDAO;
	}

	public List findAdminUserByPwd(AdminUser adminUser) throws Exception {
		return adminUserDAO.findAdminUserByPwd(adminUser);
	}

	public int saveAdminUser(AdminUser adminUser) throws Exception {
		return adminUserDAO.saveAdminUser(adminUser);
	}

	public int updateAdminUser(Map adminUser) throws Exception {
		return adminUserDAO.updateAdminUser(adminUser);
	}

}
